#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"

void TestStack()
{
	ST s;
	StackInit(&s);
	StackPush(&s, 2);
	StackPush(&s, 1);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	if (StackEmpty(&s))
		printf("YES\n");
	StackDataType top = StackTop(&s);
	printf("%d\n", top);
	int size = StackSize(&s);
	printf("%d\n", size);
	StackDestory(&s);
}

int main()
{
 	TestStack();
	return 0;
}